package com.site.wisdom_construction.dao.healthEpidemicModel;

import com.site.wisdom_construction.entity.healthEpidemicModel.WarningRecord;
import com.site.wisdom_construction.statisticsResult.AntiepidemicInformationByTypeName;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/5/7
 * @Description
 */
public interface WarningRecordDao {
    /** 增加定位手环预警记录 */
    int insertWarningRecord(Map map);

    /** 删除定位手环预警记录 */
    int deleteWarningRecord(Map map);

    /** 修改定位手环预警记录 */
    int updateWarningRecord(Map map);

    /** 分页模糊查询定位手环预警记录 */
    List<WarningRecord> findWarningRecordByPage(Map map);

    /** 统计分页模糊总数 */
    long Total(Map map);

    /** 今日预警_体温 */
    int countWarningRecordByWarningTypeTw(Map map);

    /** 今日预警_心率 */
    int countWarningRecordByWarningTypeXl(Map map);

    /** 今日预警_血压 */
    int countWarningRecordByWarningTypeXy(Map map);

    /** 今日预警_血氧 */
    int countWarningRecordByWarningTypeXY(Map map);

    /** 当月预警统计 */
    List<AntiepidemicInformationByTypeName> countWarningRecordByTime(Map map);
}
